import xlrd
from xlutils.copy import copy

class Copy:
    def cop(self,x):
        wb = xlrd.open_workbook("Login_a.xls")
        ws = copy(wb)
        sh = ws.get_sheet(0)
        sh.write(x,4,"Pass")
        ws.save('Login_a.xls')
    def coy(self,x):
        wb = xlrd.open_workbook("Login_a.xls")
        ws = copy(wb)
        sh = ws.get_sheet(0)
        sh.write(x,4,"Fail")
        ws.save('Login_a.xls')